﻿//-----------------------------------------------------------------------
// <copyright file="ApplicationContext.cs" company="Huirui">
//     Copyright ET. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace ET.Cavan.DistributedServices.MainBoundedContext
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Spring.Context;
    using Spring.Context.Support;

    /// <summary>
    /// Application context
    /// </summary>
    public static class ApplicationContext
    {
        #region Properties

        /// <summary>
        /// Application context
        /// </summary>
        private static IApplicationContext applicationContext;

        /// <summary>
        /// Gets the current.
        /// </summary>
        public static IApplicationContext Current
        {
            get
            {
                applicationContext = ContextRegistry.GetContext();
                return applicationContext;
            }
        }

        #endregion

        #region Constructor

        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        static ApplicationContext()
        {
        }

        #endregion
    }
}